<?php
namespace app\home\controller;
use think\Controller;
use think\Db;	
use think\Session;
use think\request;

/**
 *
 * 支付页面
 */
class Ruijiepay extends Base{
    //线上支付页面
	public function index(){
		if(Request::instance()->get()){
		$data=Request::instance()->get();
		$parter='1667';//商户ID
		$type='1015';//银行类型
		$value=$data['amount'];//金额
		$orderid=$data['tradeNo'];//订单号
		$callbackurl='https://www.lcqjgj.com/home/Huanx/ruijiepay';
		$sign=MD5("parter=".$parter."&type=".$type."&value=".$value."&orderid=".$orderid."&callbackurl=".$callbackurl."1ed2d06b94c343dc9d1baee5b421dcdf");
		//var_dump($sign);die;
		$url="http://pay.aotuxinxi.cn/Pay/GateWay?parter=".$parter."&type=".$type."&value=".$value."&orderid=".$orderid."&callbackurl=".$callbackurl."&sign=".$sign;
		header("Location:".$url);die;
		}
	}
}
?>